﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 计科2111林开心06
{
    public partial class _3_1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
        
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            StruInfoDataContext stu = new StruInfoDataContext();

            var res = from r in stu.Studnet
                      select new
                      {
                          r.id,
                          r.cid

                      };
            GridView1.DataSource = res;
            GridView1.DataBind();

        }
    }
}